<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="/struts-dojo-tags" prefix="sx"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/JavaScript" src="javascript.js"></script>
        <sx:head></sx:head>
        <title>Manter Professor</title>
    </head>
    <body>
        <h1>Manter Professor - ${operacao}</h1>
        
        <s:form action="Professor">
            <s:hidden name="operacao" value="%{operacao}"></s:hidden>
            
            <s:textfield name="professor.matricula" readonly="%{readOnlyCod}" label="Matricula" onkeyup="campoNumerico(this)" value="%{professor.matricula}"></s:textfield>
            <s:textfield name="professor.nome" readonly="%{readOnly}" label="Nome" value="%{professor.nome}"></s:textfield>
            <sx:datetimepicker name="professor.dtNascimento" disabled="%{readOnly}" label="Data Nascimento" value="%{professor.dtNascimento}" displayFormat="dd/MM/yyyy"></sx:datetimepicker>
            <s:textfield name="professor.endLogradouro" readonly="%{readOnly}" label="Logradouro" value="%{professor.endLogradouro}"></s:textfield>
            <s:textfield name="professor.endNumero" readonly="%{readOnly}" label="Numero" onkeyup="campoNumerico(this)" value="%{professor.endNumero}"></s:textfield>
            <s:textfield name="professor.endComplemento" readonly="%{readOnly}" label="Complemento" value="%{professor.endComplemento}"></s:textfield>
            <s:textfield name="professor.endBairro" readonly="%{readOnly}" label="Bairro" value="%{professor.endBairro}"></s:textfield>
            <s:textfield name="professor.endCep" readonly="%{readOnly}" label="CEP" value="%{professor.endCep}"></s:textfield>
            <s:textfield name="professor.endCidade" readonly="%{readOnly}" label="Ceidade" value="%{professor.endCidade}"></s:textfield>
            <s:select name="professor.endEstado" readonly="%{readOnly}" label="Estado" list="estados"></s:select>
            <s:textfield name="professor.email" readonly="%{readOnly}" label="E-mail" value="%{professor.email}"></s:textfield>
            <s:textfield name="professor.endCidade" readonly="%{readOnly}" label="Ceidade" value="%{professor.endCidade}"></s:textfield>
            <sx:datetimepicker name="professor.dtIngresso" disabled="%{readOnly}" label="Data Ingrasso" value="%{professor.dtIngresso}" displayFormat="dd/MM/yyyy"></sx:datetimepicker>
            <s:select name="professor.titulacao" readonly="%{readOnly}" label="Titulação" list="titulacoes"></s:select>
            <s:select name="professor.curso.codCurso" readonly="%{readOnly}" label="Curso de Atuação" listKey="codCurso" listValue="nome"
                      list="cursos"></s:select>
            
            <s:submit action="voltarProfessor" value="Voltar"></s:submit>
            <s:submit action="confirmarProfessor" value="Confimar"></s:submit>
        </s:form>
        
    </body>
</html>
